<html>

<head>
<title> Javascript Example</title>

</head>

<body>
<h1>My First JavaScript</h1>
<p>Click the button to display the date.</p>
<p id="demo">Date?</p>

<button type="button" onclick="myFunction()">Try it</button>

<script>
function myFunction()
{
var d = new Date(2013,12,1);
var n = d.getDay();

document.getElementById("demo").innerHTML = n;
}
</script>

<p> Sun Mon Tue Wed Thur Fri Sat</p>


</body>

</html>


